import request from '@/utils/request'

// 查询私车公用申请列表
export function listAdminBus(query) {
  return request({
    url: '/oa/adminBus/list',
    method: 'get',
    params: query
  })
}

// 查询私车公用申请详细
export function getAdminBus(id) {
  return request({
    url: '/oa/adminBus/' + id,
    method: 'get'
  })
}

// 新增私车公用申请
export function addAdminBus(data) {
  return request({
    url: '/oa/adminBus',
    method: 'post',
    data: data
  })
}

// 修改私车公用申请
export function updateAdminBus(data) {
  return request({
    url: '/oa/adminBus',
    method: 'put',
    data: data
  })
}

// 删除私车公用申请
export function delAdminBus(id) {
  return request({
    url: '/oa/adminBus/' + id,
    method: 'delete'
  })
}
